﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using AFI.Speargun.Web.Models;
using AFI.Speargun.Web.Models.Validation;

namespace AFI.Speargun.Web.Controllers
{
    [HandleError]
    public abstract class BaseController : Controller
    {
        protected ISpeargunService _service;

        public BaseController()
        {
            this._service = new SpeargunService(new ModelStateWrapper(this.ModelState));
        }
        
        public BaseController(ISpeargunService service)
        {
            this._service = service;
        }

        protected int pageSize = 20;
    }
}
